Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

[第一週] 認識 Command Line

[第一週] 認識 Command Line

Google Chrome開發者工具教學 - Console

Google Chrome開發者工具教學 - Console

轉職前端工程師之路 Day1

轉職前端工程師之路 Day1


Comments